#!/usr/bin/python
# coding=utf-8

'''
only for test
'''

import wsgiref.handlers
from google.appengine.ext import webapp
import userplatform


class test(webapp.RequestHandler):
    def get(self):
        self.response.out.write(\
            userplatform.get_system(\
            self.request.headers["User-Agent"]))
        self.response.out.write(\
            userplatform.get_browser(\
            self.request.headers["User-Agent"]))
        #self.response.out.write(self.request.headers)        
        
        
application = webapp.WSGIApplication([
  ('/', test),
], debug=True)

def main():
  wsgiref.handlers.CGIHandler().run(application)

if __name__ == '__main__':
  main()